//
//  UILabel+ColorAndText.m
//  YIJU2.0-HD
//
//  Created by 陈柏兵 on 16/5/9.
//  Copyright © 2016年 张金国. All rights reserved.
//

#import "UILabel+ColorAndText.h"

@implementation UILabel (ColorAndText)

+(UILabel *)lableWithBackgroundColor:(UIColor *)backgroundColor textFont:(CGFloat)textFont textColor:(UIColor *)textColor title:(NSString *)title {
    UILabel *label = [[UILabel alloc] init];
    label.layer.cornerRadius = 6;
    label.layer.masksToBounds = YES;
    label.backgroundColor = backgroundColor;
    label.font = [UIFont systemFontOfSize:textFont];
    label.textColor = textColor;
    label.textAlignment = NSTextAlignmentCenter;
    label.text = title;
    
    return label;
}

@end
